package com.ruoyi.project.erp.sossend.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.erp.sossend.mapper.SossendMapper;
import com.ruoyi.project.erp.sossend.domain.Sossend;
import com.ruoyi.project.erp.sossend.service.ISossendService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 订单发货明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-10-20
 */
@Service
public class SossendServiceImpl implements ISossendService 
{
    @Autowired
    private SossendMapper sossendMapper;

    /**
     * 查询订单发货明细
     * 
     * @param id 订单发货明细ID
     * @return 订单发货明细
     */
    @Override
    public Sossend selectSossendById(Long id)
    {
        return sossendMapper.selectSossendById(id);
    }

    /**
     * 查询订单发货明细列表
     * 
     * @param sossend 订单发货明细
     * @return 订单发货明细
     */
    @Override
    public List<Sossend> selectSossendList(Sossend sossend)
    {
        return sossendMapper.selectSossendList(sossend);
    }

    @Override
    public List<Sossend> selectSossendSendCode(String ids) {
        return sossendMapper.selectSossendSendCode(ids);
    }

    /**
     * 新增订单发货明细
     * 
     * @param sossend 订单发货明细
     * @return 结果
     */
    @Override
    public int insertSossend(Sossend sossend)
    {
        return sossendMapper.insertSossend(sossend);
    }

    /**
     * 修改订单发货明细
     * 
     * @param sossend 订单发货明细
     * @return 结果
     */
    @Override
    public int updateSossend(Sossend sossend)
    {
        return sossendMapper.updateSossend(sossend);
    }

    @Override
    public int updateSossendBatch(Sossend sossend) {
        return sossendMapper.updateSossendBatch(sossend);
    }

    /**
     * 删除订单发货明细对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSossendByIds(String ids)
    {
        return sossendMapper.deleteSossendByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除订单发货明细信息
     * 
     * @param id 订单发货明细ID
     * @return 结果
     */
    @Override
    public int deleteSossendById(Long id)
    {
        return sossendMapper.deleteSossendById(id);
    }
}
